import request from '@/utils/request';

export function countOwnHisClass() {
  return request({
    url: "/system/teacher/countOwnHisClass",
    method: "get"
  });
}

export function countOwnLiveStu() {
  return request({
    url: "/system/teacher/countOwnLiveStu",
    method: "get"
  });
}


export function countOwnHisStu() {
  return request({
    url: "/system/teacher/countOwnHisStu",
    method: "get"
  });
}


export function countOwnNowStu() {
  return request({
    url: "/system/teacher/countOwnNowStu",
    method: "get"
  });
}




export function getOwnUnTodoCount() {
  return request({
    method: "get",
    url: "/system/teacher/getOwnUnTodoCount"
  });
}

export function listOwnMajor() {
  return request({
    method: "get",
    url: "/system/teacher/listOwnMajor"
  });
}

export function listOwnGrade() {
  return request({
    method: "get",
    url: "/system/teacher/listOwnGrade"
  })
}


// export function listIam(query = {}){
//   return request({
//     url:"/system/iam/sumList",
//     method:"get",
//     params:query
//   });
// }


export function getIamRecordByStuNo(stuNo = "", query) {
  return request({
    url: "/system/teacher/getIamRecordByStuNo/" + stuNo,
    method: "get",
    params: query
  });
}

export function listAllIam() {
  return request({
    url: "/system/teacher/listAllIam",
    method: "get",
  });
}

export function listIam(query = {}) {
  return request({
    url: "/system/teacher/listIam",
    method: "get",
    params: query
  });
}


export function listAllSport() {
  return request({
    url: "/system/teacher/listAllSport",
    method: "get",
  });
}

export function listSport(query = {}) {
  return request({
    url: "/system/teacher/listSport",
    method: "get",
    params: query
  });
}

export function listAllCourse() {
  return request({
    url: "/system/teacher/listAllCourse",
    method: "get",
  });
}

export function listCourse(query = {}) {
  return request({
    url: "/system/teacher/listCourse",
    method: "get",
    params: query
  });
}

export function listAllCe() {
  return request({
    url: "/system/teacher/listAllCe",
    method: "get",
  });
}

export function listCe(query = {}) {
  return request({
    url: "/system/teacher/listCe",
    method: "get",
    params: query
  });
}


export function listAllClassTwo() {
  return request({
    url: "/system/teacher/listAllClassTwo",
    method: "get",
  });
}


export function listClassTwo(query = {}) {
  return request({
    url: "/system/teacher/listClassTwo",
    method: "get",
    params: query
  });
}

export function getStuScore(stuNo) {
  return request({
    url: "/system/teacher/getStuScore/" + stuNo,
    method: "get"
  });
}

export function listOwnAllStu() {
  return request({
    url: "/system/teacher/listOwnAllStu",
    method: "get"
  });
}
export function listOwnStu(query = {}) {
  return request({
    url: "/system/teacher/listOwnStu",
    method: "get",
    params: query
  });
}

// 查询辅导员信息列表
export function listTeacher(query) {
  return request({
    url: '/system/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询辅导员名字列表
export function listTeacherName() {
  return request({
    url: '/system/teacher/name',
    method: 'get'

  })
}

// 查询辅导员信息详细
export function getTeacher(teacherId) {
  return request({
    url: '/system/teacher/' + teacherId,
    method: 'get'
  })
}

// 新增辅导员信息
export function addTeacher(data) {
  return request({
    url: '/system/teacher',
    method: 'post',
    data: data
  })
}

// 修改辅导员信息
export function updateTeacher(data) {
  return request({
    url: '/system/teacher/update',
    method: 'post',
    data: data
  })
}

// 删除辅导员信息
export function delTeacher(teacherId) {
  return request({
    url: '/system/teacher/delete/' + teacherId,
    method: 'post'
  })
}
